﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true" CodeBehind="StationLettersList.aspx.cs" Inherits="Besture.UI.Admin.UserBase.StationLettersList" %>

<%@ Register TagPrefix="dxwgv" Namespace="DevExpress.Web.ASPxGridView" Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
     <div class="listPage">
        <!--顶部操作按钮开始--> 
        <div class="operateBar">
            <cms:ListButton ID="ListButton1" runat="server" Title="" />
        </div> 
        <!--顶部操作按钮结束-->
        <dxwgv:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%"
            AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="GridCustomCallback"
            OnRowDeleting="GridRowDeleting">
            <Columns>
                <cms:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="50px"
                    FixedStyle="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选/全不选"
                            id="chkAll" runat="server" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </cms:GridViewCommandColumn>
                <cms:GridViewCommandColumn VisibleIndex="1" Caption="删除" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Left" ButtonType="Image" FixedStyle="Left">
                    <DeleteButton Visible="true" Image-Url="/Admin/Themes/Images/del.gif" Text="删除">
                    </DeleteButton>
                </cms:GridViewCommandColumn>
                <cms:GridViewDataTextColumn Caption="编辑" VisibleIndex="2" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Left" FixedStyle="Left">
                    <DataItemTemplate>
                        <a href="StationLettersSet.aspx?id=<%# Eval("ID")%>">
                            <img src="/Admin/Themes/Images/edit.gif" alt="查看编辑" title="查看编辑" /></a>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="标题" VisibleIndex="3" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left" FieldName="Title">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="内容" VisibleIndex="4" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left" >
                    <DataItemTemplate>
                       <%# Besture.Common.StringHelper.StringTruncat(Besture.Common.StringHelper.RemoveHTML(Eval("Content").ToString()), 30, "...")%>
                    </DataItemTemplate>
				</cms:GridViewDataTextColumn> 
				<cms:GridViewDataDateColumn Caption="更新日期" VisibleIndex="20" Width="100" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Left"  FieldName="UpdateTime">
					<PropertiesDateEdit DisplayFormatString="{0:yyyy-MM-dd}">
					</PropertiesDateEdit>
				</cms:GridViewDataDateColumn>
            </Columns>
        </dxwgv:ASPxGridView>  
    </div>
</asp:Content>
